#ifndef __API_H__
#define __API_H__
#include "BBTCP.h"

#ifdef __cplusplus
extern "C"
{
#endif
    ELP_API LPVOID ELP_Create();
    ELP_API STATUS ELP_Close(IOCPService* pServer, ENDPOINT_ID id);
    ELP_API STATUS ELP_SendMsg(IOCPService* pServer, ENDPOINT_ID id, const char* buf, int len);
    ELP_API STATUS ELP_ServiceInit(IOCPService* pServer);
    ELP_API STATUS ELP_SetEventHandler(IOCPService* pServer, TCPEventHandler* pEventHandler);
    ELP_API STATUS ELP_Destory(IOCPService* pServer);
    ELP_API ENDPOINT_ID ELP_Connect(IOCPService* pServer, const char* szIp, int port);

#ifdef __cplusplus
}
#endif
#endif // !__API_H__